<script>
	export default {
		// uniapp初始化时触发
		onLaunch: function() {
			uni.hideTabBar();
			
			// 条件编译 除H5端适用
			// #ifndef H5
			//获取导航栏的高度
			const obj = {}
			uni.getSystemInfo({
				success: (res) => {
					obj.statusBarHeight = res.statusBarHeight
				}
			})
			const menuButton = uni.getMenuButtonBoundingClientRect()
			obj.navBarHeight = (menuButton.bottom - obj.statusBarHeight) + (menuButton.top - obj.statusBarHeight)
			obj.navBarWidth = menuButton.left
			this.$store.commit('phoneInfo/setInfo',obj)
			// #endif
			
		},
		onShow: function() {
			// console.log('App Show')
			uni.hideTabBar();
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #222222;
		color: #ffffff;
		font-family: cursive;
	}
</style>
